package com.wanho.java159.code.gen.core;

import com.wanho.java159.code.gen.util.FileUtil;
import com.wanho.java159.code.gen.util.GenCodeType;

import java.util.Map;

/**
 * @author zhang
 * @version 1.0
 * @date 2021/7/10
 */
public class ControllerGen {
    public static void genControllerCode(Map<String, Object> entityData) throws Exception{
        System.out.println("===========生成 controller 层  开始======================");
        FileUtil.generateToJava(GenCodeType.CONTROLLER, entityData);
        System.out.println("===========生成 controller 层  结束======================");
    }
}
